﻿#pragma once


// LoginDialog 对话框

class LoginDialog : public CDialogEx
{
	DECLARE_DYNAMIC(LoginDialog)

public:
	LoginDialog(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~LoginDialog();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DIALOG_LOGIN };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持
	virtual BOOL OnInitDialog();
	virtual void OnCancel();
	DECLARE_MESSAGE_MAP()
public:
	void EnableControls(BOOL nflag);

	
	CString m_cNewPassword;

	BOOL ModeFlag = 0;
public:
	
	void ReadConfigIni();
	void SaveValueToConfig();
	afx_msg void OnBnClickedButton1();


	afx_msg void OnBnClickedButton3();
	CString m_cUserName;
	CString m_cPassward;
	CString m_cUserNameCorrect;
	CString m_cPasswordCorrect;
	afx_msg void OnBnClickedButton2();
	CString User;
	CString Pallent;
	CString Program;
	int LuosiMax;
};
